from django.db import models


class Contrato(models.Model):

    fechareserva = models.DateTimeField(null=True, blank=True)
    fechaingreso = models.DateTimeField(null=True, blank=True)
    fechasalida = models.DateTimeField(null=True, blank=True)
    precioalquiler = models.CharField(max_length=60)
    estado = models.CharField(max_length=60)

   # created_at = models.DateTimeField(auto_now_add=True)
   # updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        verbose_name = "Contrato"
        verbose_name_plural = "Contratos"

    def __str__(self):
        return self.estado
